<?php

class Form_Search extends Zend_Dojo_Form
{    
    public function init()
    {
 
        $this->setMethod('post');

        $this->addElement('ComboBox','f',
            array(
                'label'        => 'ComboBox (select)',
                'value'        => 'blue',
                'autocomplete' => false,
                'multiOptions' => array(
                    'red'    => 'Rouge',
                    'blue'   => 'Bleu',
                    'white'  => 'Blanc',
                    'orange' => 'Orange',
                    'black'  => 'Noir',
                    'green'  => 'Vert',
                ),
            )
        );
        
        $this->addElement('ComboBox','test',
            array(
                'label'        => 'Your input:',
                'store' => 'testStore',                
                'filters'        => array('StringTrim'),
                'autocomplete' => false                
            )
        );
               
        $this->addElement('submit', 'go', array('label' => 'Go'));
    }
    
}
